package com.frostmourne.loreoriginex.api.events;

import com.frostmourne.loreoriginex.objects.LoreOrigin;
import com.frostmourne.loreoriginex.objects.LoreOriginData;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

import java.util.List;

public class AttributeUpdateEvent extends Event {

    private static HandlerList handlerList = new HandlerList();
    private LivingEntity entity;
    private List<LoreOriginData> loreOrigins;


    public AttributeUpdateEvent(LivingEntity entity, List<LoreOriginData> loreOrigins) {
        this.entity = entity;
        this.loreOrigins = loreOrigins;
    }

    public AttributeUpdateEvent(){

    }

    @Override
    public HandlerList getHandlers() {
        return handlerList;
    }

    public static HandlerList getHandlerList() {
        return handlerList;
    }


    public List<LoreOriginData> getLoreOrigins() {
        return loreOrigins;
    }

    public void setLoreOrigins(List<LoreOriginData> loreOrigins) {
        this.loreOrigins = loreOrigins;
    }

    public LivingEntity getEntity() {
        return entity;
    }

    public void setEntity(LivingEntity entity) {
        this.entity = entity;
    }
}
